package com.hnust.root.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnust.root.dao.entity.domain.ManagerToRole;
import com.hnust.root.dao.entity.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author zhusir
 * @Date 2019/1/27
 * @Desc
 */
@Mapper
@Repository
public interface RoleMapper extends BaseMapper<Role> {


    /**
     * 通过角色名称选择
     * @param rolename
     * @return
     */
    @Select("select * from sys_role where role_name = #{rolename}")
    Role selectByRole(@Param("rolename")String rolename);
}
